<?php
/**
 *---------------------------------------------------------------
 * 檔案名稱: photo.php
 * 類別功能: 相片處理。 
 *---------------------------------------------------------------
 */

if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class Photo extends CI_Controller {
	
	//建構方法
	function __construct() {
		parent::__construct();
		$this->load->helper('url');
		$this->load->library('session');

		//取得session值
		$this->data['login'] = $this->session->userdata('login');
		 $this->data['name'] = $this->session->userdata('name');
	}
	
	//預設方法
	function index(){
		
		$this->load->view('frontend/default/header',$this->data);
		$this->load->view('frontend/photo');
		$this->load->view('frontend/default/footer');
	} 	
	
	//新增相片方法
	function photo_add(){
		
	}
	
}